﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_HotKeyWord.aspx.cs"
    Inherits="V5_EShop.Admin.Admin_HotKeyWord" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>热门关键字</title>
    <!--#include file="inc/libs.aspx"-->
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="toptable" width="100%">
        <tr>
            <td class="topnavichar" style="padding-left: 14px">
                <div align="left">
                    位置导航：<a class="list_link" href="Admin_Index_Main.aspx" target="main">首页</a><img alt=""
                        border="0" src="/sysImages/folder/navidot.gif" />热门关键字</div>
            </td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="Navitable"
        width="100%">
        <tr>
            <td align="left">
                <a href="Admin_HotKeyWord.aspx">管理商品</a> | <a href="Admin_HotKeyWord.aspx?Action=edit">
                    添加</a>
            </td>
        </tr>
    </table>
    <br />
    <form id="form1" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" CssClass="listtable"
                GridLines="None" OnRowCommand="gvList_RowCommand">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <HeaderStyle CssClass="headertext" />
                        <ItemStyle Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="HotKeyName" HeaderText="关键字名称" HeaderStyle-CssClass="headertext" />
                    <asp:BoundField DataField="HotKeyUrl" HeaderText="关键字地址" HeaderStyle-CssClass="headertext" />
                    <asp:TemplateField HeaderText="状态">
                        <HeaderStyle CssClass="headertext" />
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem,"IsShow").ToString()=="1"?"显示":"隐藏" %>
                        </ItemTemplate>
                        <ItemStyle Width="40px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <HeaderStyle CssClass="headertext" />
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'
                                CommandName="go">修改</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("ID") %>'
                                CommandName="del">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
            </webdiyer:AspNetPager>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="5" cellspacing="1" class="edittable">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblTitle" runat="server" Text="添加关键字"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        关键字名称
                    </td>
                    <td>
                        <asp:TextBox ID="txtKeyWordTitle" runat="server" Width="247px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        关键字地址
                    </td>
                    <td>
                        <asp:TextBox ID="txtKeyWordUrl" runat="server" Width="444px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        是否显示
                    </td>
                    <td>
                        <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem Value="1">显示</asp:ListItem>
                            <asp:ListItem Value="0">隐藏</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" Text="添加保存" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
